package com.tenbent.product.base.dto.search;

import com.tenbent.product.base.query.page.Pageable;

/**
 * 查询分页基类
 *
 * @author Randy
 *
 *         Created by ThinkPad on 2017/8/23.
 */
public abstract class BaseSearchPageDto extends BaseSearchDto {

	public static final Integer DEFAULT_PAGE_NUM = 1;

	public static final Integer DEFAULT_PAGE_SIZE = 10;

	/** 当前第几页 */
	private Integer pageNum = DEFAULT_PAGE_NUM;

	/** 每页多少行记录 */
	private Integer pageSize = DEFAULT_PAGE_SIZE;

	public abstract Pageable transToPageable();

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
}
